<!DOCTYPE html>
<html lang="zh-CN">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>排期管理 - 一体化作战平台</title>
    <!-- 引入Tailwind CSS -->
    <script src="https://cdn.tailwindcss.com"></script>
    <!-- 引入Font Awesome -->
    <link href="https://cdn.jsdelivr.net/npm/font-awesome@4.7.0/css/font-awesome.min.css" rel="stylesheet">
    <!-- 引入Chart.js -->
    <script src="https://cdn.jsdelivr.net/npm/chart.js@4.4.8/dist/chart.umd.min.js"></script>
    
    <!-- Tailwind配置 -->
    <script>
        tailwind.config = {
            theme: {
                extend: {
                    colors: {
                        primary: '#0066cc',
                        secondary: '#0099cc',
                        success: '#009966',
                        warning: '#ff9900',
                        danger: '#cc3300',
                        neutral: {
                            100: '#f5f7fa',
                            200: '#e4e7ed',
                            300: '#c0c4cc',
                            400: '#909399',
                            500: '#606266',
                            600: '#303133',
                            700: '#1f2937',
                        }
                    },
                    fontFamily: {
                        sans: ['Inter', 'system-ui', 'sans-serif'],
                    },
                    boxShadow: {
                        'card': '0 2px 8px rgba(0, 0, 0, 0.08)',
                        'dropdown': '0 4px 16px rgba(0, 0, 0, 0.12)',
                    }
                },
            }
        }
    </script>
    
    <!-- 自定义工具类 -->
    <style type="text/tailwindcss">
        @layer utilities {
            .content-auto {
                content-visibility: auto;
            }
            .scrollbar-hide {
                -ms-overflow-style: none;
                scrollbar-width: none;
            }
            .scrollbar-hide::-webkit-scrollbar {
                display: none;
            }
            .text-shadow {
                text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
            }
            .transition-all-300 {
                transition: all 300ms ease-in-out;
            }
        }
    </style>
</head>
<body class="bg-neutral-100 font-sans text-neutral-600 min-h-screen flex flex-col">
    <!-- 顶部导航栏 -->
    <header class="bg-white shadow-sm fixed top-0 left-0 right-0 z-50">
        <div class="flex items-center justify-between px-4 py-3">
            <!-- Logo和标题 -->
            <div class="flex items-center space-x-3">
                <div class="w-10 h-10 bg-primary rounded-md flex items-center justify-center text-white">
                    <i class="fa fa-bank text-xl"></i>
                </div>
                <h1 class="text-xl font-bold text-neutral-700 hidden md:block">一体化作战平台</h1>
                <h1 class="text-lg font-bold text-neutral-700 md:hidden">研发交付平台</h1>
            </div>
            
            <!-- 搜索框 -->
            <div class="hidden md:flex relative flex-1 max-w-md mx-4">
                <input type="text" placeholder="搜索任务..." 
                    class="w-full pl-10 pr-4 py-2 rounded-md border border-neutral-200 focus:outline-none focus:ring-2 focus:ring-primary/30 focus:border-primary">
                <i class="fa fa-search absolute left-3 top-1/2 transform -translate-y-1/2 text-neutral-400"></i>
            </div>
            
            <!-- 右侧用户区域 -->
            <div class="flex items-center space-x-1 md:space-x-4">
                <!-- 通知按钮 -->
                <button class="relative p-2 rounded-full hover:bg-neutral-100 transition-all-300">
                    <i class="fa fa-bell-o text-lg text-neutral-600"></i>
                    <span class="absolute top-0 right-0 w-2 h-2 bg-danger rounded-full"></span>
                </button>
                
                <!-- 消息按钮 -->
                <button class="relative p-2 rounded-full hover:bg-neutral-100 transition-all-300 hidden md:block">
                    <i class="fa fa-envelope-o text-lg text-neutral-600"></i>
                    <span class="absolute top-0 right-0 w-2 h-2 bg-primary rounded-full"></span>
                </button>
                
                <!-- 用户头像 -->
                <div class="flex items-center space-x-2 ml-2">
                    <div class="w-8 h-8 bg-neutral-200 rounded-full overflow-hidden">
                        <img src="https://picsum.photos/id/1005/200/200" alt="用户头像" class="w-full h-full object-cover">
                    </div>
                    <span class="hidden md:block text-sm font-medium text-neutral-700">张三</span>
                </div>
            </div>
        </div>
    </header>

    <!-- 主体内容 -->
    <div class="flex pt-16 flex-1">
        <!-- 左侧导航菜单 -->
        <aside class="w-16 md:w-64 bg-white shadow-sm fixed h-full left-0 top-16 overflow-y-auto scrollbar-hide transform md:transform-none transition-transform duration-300 z-40 -translate-x-full md:translate-x-0">
            <nav class="py-4">
                <ul>
                    <!-- 主导航项 -->
                    <li class="mb-1">
                        <a href="index.html" class="flex items-center space-x-3 px-4 py-3 text-neutral-600 hover:bg-neutral-50 transition-all-300">
                            <i class="fa fa-tachometer text-lg"></i>
                            <span class="hidden md:block">首页</span>
                        </a>
                    </li>
                    
                    <!-- 交付流程模块 -->
                    <li class="mb-1">
                        <a href="business_strategy.html" class="flex items-center space-x-3 px-4 py-3 text-neutral-600 hover:bg-neutral-50 transition-all-300">
                            <i class="fa fa-line-chart text-lg"></i>
                            <span class="hidden md:block">业务战略</span>
                        </a>
                    </li>
                    
                    <li class="mb-1">
                        <a href="architecture-management.html" class="flex items-center space-x-3 px-4 py-3 text-neutral-600 hover:bg-neutral-50 transition-all-300">
                            <i class="fa fa-sitemap text-lg"></i>
                            <span class="hidden md:block">架构管理</span>
                        </a>
                    </li>
                    
                    <li class="mb-1">
                        <a href="requirementsManagement.html" class="flex items-center space-x-3 px-4 py-3 text-neutral-600 hover:bg-neutral-50 transition-all-300">
                            <i class="fa fa-list-alt text-lg"></i>
                            <span class="hidden md:block">需求管理</span>
                        </a>
                    </li>
                    
                    <li class="mb-1">
                        <div class="design-menu-wrapper">
                            <div class="flex items-center justify-between px-4 py-3 text-neutral-600 hover:bg-neutral-50 transition-all-300">
                                <a href="design_management.html" class="flex items-center space-x-3 flex-1" onclick="event.stopPropagation();">
                                    <i class="fa fa-paint-brush text-lg"></i>
                                    <span class="hidden md:block">设计管理</span>
                                </a>
                                <button id="design-menu-toggle" class="hidden md:block p-1 hover:bg-neutral-200 rounded transition-all" aria-label="展开/收起子菜单" onclick="event.stopPropagation();">
                                    <i class="fa fa-chevron-right text-xs transform transition-transform duration-300"></i>
                                </button>
                            </div>
                            <!-- 下拉子菜单 -->
                            <div id="design-submenu" class="hidden overflow-hidden transition-all duration-300 ease-in-out">
                                <div class="bg-neutral-50 py-1">
                                    <a href="interface_management.html" class="flex items-center space-x-3 px-4 py-2 pl-12 text-neutral-600 hover:bg-primary/5 hover:text-primary transition-all text-sm">
                                        <i class="fa fa-plug text-sm"></i>
                                        <span class="hidden md:block">接口管理</span>
                                    </a>
                                    <a href="model_management.html" class="flex items-center space-x-3 px-4 py-2 pl-12 text-neutral-600 hover:bg-primary/5 hover:text-primary transition-all text-sm">
                                        <i class="fa fa-cubes text-sm"></i>
                                        <span class="hidden md:block">模型管理</span>
                                    </a>
                                    <a href="data_management.html" class="flex items-center space-x-3 px-4 py-2 pl-12 text-neutral-600 hover:bg-primary/5 hover:text-primary transition-all text-sm">
                                        <i class="fa fa-database text-sm"></i>
                                        <span class="hidden md:block">字典管理</span>
                                    </a>
                                    <a href="ui_management.html" class="flex items-center space-x-3 px-4 py-2 pl-12 text-neutral-600 hover:bg-primary/5 hover:text-primary transition-all text-sm">
                                        <i class="fa fa-desktop text-sm"></i>
                                        <span class="hidden md:block">差异分析</span>
                                    </a>
                                </div>
                            </div>
                        </div>
                    </li>
                    
                    <li class="mb-1">
                        <a href="schedule_management.html" class="flex items-center space-x-3 px-4 py-3 text-primary bg-primary/5 border-r-4 border-primary">
                            <i class="fa fa-calendar text-lg"></i>
                            <span class="hidden md:block font-medium">排期管理</span>
                        </a>
                    </li>
                    
                    <li class="mb-1">
                        <a href="developmentMage.html" class="flex items-center space-x-3 px-4 py-3 text-neutral-600 hover:bg-neutral-50 transition-all-300">
                            <i class="fa fa-code text-lg"></i>
                            <span class="hidden md:block">开发管理</span>
                        </a>
                    </li>
                    
                    <li class="mb-1">
                        <div class="test-menu-wrapper">
                            <div class="flex items-center justify-between px-4 py-3 text-neutral-600 hover:bg-neutral-50 transition-all-300">
                                <a href="testManagement.html" class="flex items-center space-x-3 flex-1" onclick="event.stopPropagation();">
                                    <i class="fa fa-bug text-lg"></i>
                                    <span class="hidden md:block">测试管理</span>
                                </a>
                                <button id="test-menu-toggle" class="hidden md:block p-1 hover:bg-neutral-200 rounded transition-all" aria-label="展开/收起子菜单" onclick="event.stopPropagation();">
                                    <i class="fa fa-chevron-right text-xs transform transition-transform duration-300"></i>
                                </button>
                            </div>
                            <!-- 下拉子菜单 -->
                            <div id="test-submenu" class="hidden overflow-hidden transition-all duration-300 ease-in-out">
                                <div class="bg-neutral-50 py-1">
                                    <a href="test_cases.html" class="flex items-center space-x-3 px-4 py-2 pl-12 text-neutral-600 hover:bg-primary/5 hover:text-primary transition-all text-sm">
                                        <i class="fa fa-file-text-o text-sm"></i>
                                        <span class="hidden md:block">测试案例</span>
                                    </a>
                                    <a href="test_plans.html" class="flex items-center space-x-3 px-4 py-2 pl-12 text-neutral-600 hover:bg-primary/5 hover:text-primary transition-all text-sm">
                                        <i class="fa fa-calendar-check-o text-sm"></i>
                                        <span class="hidden md:block">测试计划</span>
                                    </a>
                                    <a href="test_reports.html" class="flex items-center space-x-3 px-4 py-2 pl-12 text-neutral-600 hover:bg-primary/5 hover:text-primary transition-all text-sm">
                                        <i class="fa fa-bar-chart text-sm"></i>
                                        <span class="hidden md:block">测试报告</span>
                                    </a>
                                    <a href="test_global_settings.html" class="flex items-center space-x-3 px-4 py-2 pl-12 text-neutral-600 hover:bg-primary/5 hover:text-primary transition-all text-sm">
                                        <i class="fa fa-cogs text-sm"></i>
                                        <span class="hidden md:block">全局设置</span>
                                    </a>
                                </div>
                            </div>
                        </div>
                    </li>
                    
                    <li class="mb-1">
                        <a href="production_workflow.html" class="flex items-center space-x-3 px-4 py-3 text-neutral-600 hover:bg-neutral-50 transition-all-300">
                            <i class="fa fa-rocket text-lg"></i>
                            <span class="hidden md:block">投产上线</span>
                        </a>
                    </li>
                    
                    <!-- 新增的三个子菜单项 -->
                    <li class="mb-1">
                        <a href="quality_management.html" class="flex items-center space-x-3 px-4 py-3 text-neutral-600 hover:bg-neutral-50 transition-all-300">
                            <i class="fa fa-check-circle text-lg"></i>
                            <span class="hidden md:block">质量管理</span>
                        </a>
                    </li>
                    
                    <li class="mb-1">
                        <a href="security_management.html" class="flex items-center space-x-3 px-4 py-3 text-neutral-600 hover:bg-neutral-50 transition-all-300">
                            <i class="fa fa-shield text-lg"></i>
                            <span class="hidden md:block">安全管理</span>
                        </a>
                    </li>
                    
                    <li class="mb-1">
                        <a href="efficiency_metrics.html" class="flex items-center space-x-3 px-4 py-3 text-neutral-600 hover:bg-neutral-50 transition-all-300">
                            <i class="fa fa-bar-chart text-lg"></i>
                            <span class="hidden md:block">效能度量</span>
                        </a>
                    </li>
                    
                    <!-- 分隔线 -->
                    <li class="my-2">
                        <div class="border-t border-neutral-200 mx-4"></div>
                    </li>
                    
                    <!-- 公共模块 -->
                    <li class="mb-1">
                        <a href="teamManagement.html" class="flex items-center space-x-3 px-4 py-3 text-neutral-600 hover:bg-neutral-50 transition-all-300">
                            <i class="fa fa-users text-lg"></i>
                            <span class="hidden md:block">团队管理</span>
                        </a>
                    </li>
                    
                    <li class="mb-1">
                        <a href="settings.html" class="flex items-center space-x-3 px-4 py-3 text-neutral-600 hover:bg-neutral-50 transition-all-300">
                            <i class="fa fa-cog text-lg"></i>
                            <span class="hidden md:block">设置</span>
                        </a>
                    </li>
                </ul>
            </nav>
        </aside>

        <!-- 主内容区域 -->
        <main class="flex-1 ml-16 md:ml-64 p-4 md:p-6 bg-neutral-100 min-h-screen">
            <!-- 面包屑导航 -->
            <div class="mb-6">
                <nav class="flex" aria-label="面包屑">
                    <ol class="inline-flex items-center space-x-1 md:space-x-3">
                        <li class="inline-flex items-center">
                            <a href="index.html" class="inline-flex items-center text-sm font-medium text-neutral-500 hover:text-primary">
                                <i class="fa fa-home mr-2"></i>
                                首页
                            </a>
                        </li>
                        <li>
                            <div class="flex items-center">
                                <i class="fa fa-chevron-right text-neutral-400 text-xs mx-2"></i>
                                <span class="text-sm font-medium text-neutral-700">排期管理</span>
                            </div>
                        </li>
                    </ol>
                </nav>
            </div>

            <!-- 页面标题 -->
            <div class="flex justify-between items-center mb-6">
                <h2 class="text-xl font-bold text-neutral-700">排期管理</h2>
                <div class="flex space-x-2">
                    <button id="refresh-btn" class="px-3 py-1.5 text-sm bg-white border border-neutral-200 rounded-md text-neutral-600 hover:bg-neutral-50 transition-all-300">
                        <i class="fa fa-refresh mr-1"></i> 刷新
                    </button>
                    <button id="export-btn" class="px-3 py-1.5 text-sm bg-white border border-neutral-200 rounded-md text-neutral-600 hover:bg-neutral-50 transition-all-300">
                        <i class="fa fa-download mr-1"></i> 导出
                    </button>
                </div>
            </div>

            <!-- IT4IT需求池未建排期清单 -->
            <div class="bg-white rounded-lg shadow-card p-4 md:p-6 mb-6">
                <div class="flex justify-between items-center mb-4">
                    <h3 class="text-lg font-bold text-neutral-700">IT4IT需求池未建排期清单</h3>
                    <a href="#" class="text-primary text-sm hover:underline">查看全部</a>
                </div>
                
                <div class="overflow-x-auto">
                    <table class="min-w-full divide-y divide-neutral-200">
                        <thead class="bg-neutral-50">
                            <tr>
                                <th scope="col" class="px-4 py-3 text-left text-xs font-medium text-neutral-500 uppercase tracking-wider">需求ID</th>
                                <th scope="col" class="px-4 py-3 text-left text-xs font-medium text-neutral-500 uppercase tracking-wider">需求名称</th>
                                <th scope="col" class="px-4 py-3 text-left text-xs font-medium text-neutral-500 uppercase tracking-wider">优先级</th>
                                <th scope="col" class="px-4 py-3 text-left text-xs font-medium text-neutral-500 uppercase tracking-wider">预计工时</th>
                                <th scope="col" class="px-4 py-3 text-left text-xs font-medium text-neutral-500 uppercase tracking-wider">所属系统</th>
                                <th scope="col" class="px-4 py-3 text-left text-xs font-medium text-neutral-500 uppercase tracking-wider">提交人</th>
                                <th scope="col" class="px-4 py-3 text-left text-xs font-medium text-neutral-500 uppercase tracking-wider">提交时间</th>
                                <th scope="col" class="px-4 py-3 text-left text-xs font-medium text-neutral-500 uppercase tracking-wider">操作</th>
                            </tr>
                        </thead>
                        <tbody class="bg-white divide-y divide-neutral-200">
                            <!-- 需求项1 -->
                            <tr class="hover:bg-neutral-50 transition-all-300">
                                <td class="px-4 py-3 whitespace-nowrap text-sm font-medium text-neutral-700">REQ-20230601</td>
                                <td class="px-4 py-3 whitespace-nowrap text-sm text-neutral-600">个人存款系统功能优化</td>
                                <td class="px-4 py-3 whitespace-nowrap">
                                    <span class="px-2 py-1 inline-flex text-xs leading-5 font-semibold rounded-full bg-danger/10 text-danger">高</span>
                                </td>
                                <td class="px-4 py-3 whitespace-nowrap text-sm text-neutral-600">80人天</td>
                                <td class="px-4 py-3 whitespace-nowrap text-sm text-neutral-600">核心银行系统</td>
                                <td class="px-4 py-3 whitespace-nowrap text-sm text-neutral-600">李四</td>
                                <td class="px-4 py-3 whitespace-nowrap text-sm text-neutral-600">2023-06-01</td>
                                <td class="px-4 py-3 whitespace-nowrap text-sm text-primary">
                                    <button class="create-schedule-btn px-2 py-1 bg-primary text-white rounded text-xs hover:bg-primary/90 transition-all-300">创建排期</button>
                                </td>
                            </tr>
                            <!-- 需求项2 -->
                            <tr class="hover:bg-neutral-50 transition-all-300">
                                <td class="px-4 py-3 whitespace-nowrap text-sm font-medium text-neutral-700">REQ-20230602</td>
                                <td class="px-4 py-3 whitespace-nowrap text-sm text-neutral-600">贷款审批流程自动化</td>
                                <td class="px-4 py-3 whitespace-nowrap">
                                    <span class="px-2 py-1 inline-flex text-xs leading-5 font-semibold rounded-full bg-warning/10 text-warning">中</span>
                                </td>
                                <td class="px-4 py-3 whitespace-nowrap text-sm text-neutral-600">120人天</td>
                                <td class="px-4 py-3 whitespace-nowrap text-sm text-neutral-600">信贷管理系统</td>
                                <td class="px-4 py-3 whitespace-nowrap text-sm text-neutral-600">王五</td>
                                <td class="px-4 py-3 whitespace-nowrap text-sm text-neutral-600">2023-06-02</td>
                                <td class="px-4 py-3 whitespace-nowrap text-sm text-primary">
                                    <button class="create-schedule-btn px-2 py-1 bg-primary text-white rounded text-xs hover:bg-primary/90 transition-all-300">创建排期</button>
                                </td>
                            </tr>
                            <!-- 需求项3 -->
                            <tr class="hover:bg-neutral-50 transition-all-300">
                                <td class="px-4 py-3 whitespace-nowrap text-sm font-medium text-neutral-700">REQ-20230603</td>
                                <td class="px-4 py-3 whitespace-nowrap text-sm text-neutral-600">客户信息管理系统升级</td>
                                <td class="px-4 py-3 whitespace-nowrap">
                                    <span class="px-2 py-1 inline-flex text-xs leading-5 font-semibold rounded-full bg-success/10 text-success">低</span>
                                </td>
                                <td class="px-4 py-3 whitespace-nowrap text-sm text-neutral-600">60人天</td>
                                <td class="px-4 py-3 whitespace-nowrap text-sm text-neutral-600">客户关系管理系统</td>
                                <td class="px-4 py-3 whitespace-nowrap text-sm text-neutral-600">赵六</td>
                                <td class="px-4 py-3 whitespace-nowrap text-sm text-neutral-600">2023-06-03</td>
                                <td class="px-4 py-3 whitespace-nowrap text-sm text-primary">
                                    <button class="create-schedule-btn px-2 py-1 bg-primary text-white rounded text-xs hover:bg-primary/90 transition-all-300">创建排期</button>
                                </td>
                            </tr>
                        </tbody>
                    </table>
                </div>
            </div>

            <!-- 已创建排期清单 -->
            <div class="bg-white rounded-lg shadow-card p-4 md:p-6">
                <div class="flex justify-between items-center mb-4">
                    <h3 class="text-lg font-bold text-neutral-700">已创建排期清单</h3>
                    <a href="#" class="text-primary text-sm hover:underline">查看全部</a>
                </div>
                
                <!-- 筛选和搜索区域 -->
                <div class="flex flex-col md:flex-row md:items-center mb-4 space-y-2 md:space-y-0 md:space-x-4">
                    <!-- 排期类型筛选 -->
                    <div class="flex items-center space-x-2">
                        <label class="text-sm text-neutral-500">排期类型:</label>
                        <select id="schedule-type-filter" class="px-3 py-1.5 text-sm border border-neutral-200 rounded-md focus:outline-none focus:ring-2 focus:ring-primary/30 focus:border-primary">
                            <option value="all">全部</option>
                            <option value="single-system">单系统排期</option>
                            <option value="urgent">紧急排期</option>
                            <option value="big-production">大投产日排期</option>
                            <option value="data-refresh">刷数排期</option>
                            <option value="data-extraction">取数排期</option>
                        </select>
                    </div>
                    
                    <!-- 状态筛选 -->
                    <div class="flex items-center space-x-2">
                        <label class="text-sm text-neutral-500">状态:</label>
                        <select id="status-filter" class="px-3 py-1.5 text-sm border border-neutral-200 rounded-md focus:outline-none focus:ring-2 focus:ring-primary/30 focus:border-primary">
                            <option value="all">全部</option>
                            <option value="pending">待开始</option>
                            <option value="in-progress">进行中</option>
                            <option value="completed">已完成</option>
                            <option value="delayed">已延期</option>
                        </select>
                    </div>
                    
                    <!-- 系统筛选 -->
                    <div class="flex items-center space-x-2">
                        <label class="text-sm text-neutral-500">所属系统:</label>
                        <select id="system-filter" class="px-3 py-1.5 text-sm border border-neutral-200 rounded-md focus:outline-none focus:ring-2 focus:ring-primary/30 focus:border-primary">
                            <option value="all">全部</option>
                            <option value="core-banking">核心银行系统</option>
                            <option value="credit-management">信贷管理系统</option>
                            <option value="crm">客户关系管理系统</option>
                            <option value="risk-management">风险管理系统</option>
                        </select>
                    </div>
                    
                    <!-- 搜索框 -->
                    <div class="relative flex-1 max-w-md">
                        <input type="text" id="schedule-search" placeholder="搜索排期名称或ID..." 
                            class="w-full pl-10 pr-4 py-1.5 text-sm rounded-md border border-neutral-200 focus:outline-none focus:ring-2 focus:ring-primary/30 focus:border-primary">
                        <i class="fa fa-search absolute left-3 top-1/2 transform -translate-y-1/2 text-neutral-400"></i>
                    </div>
                </div>
                
                <div class="overflow-x-auto">
                    <table class="min-w-full divide-y divide-neutral-200">
                        <thead class="bg-neutral-50">
                            <tr>
                                <th scope="col" class="px-4 py-3 text-left text-xs font-medium text-neutral-500 uppercase tracking-wider">排期ID</th>
                                <th scope="col" class="px-4 py-3 text-left text-xs font-medium text-neutral-500 uppercase tracking-wider">排期名称</th>
                                <th scope="col" class="px-4 py-3 text-left text-xs font-medium text-neutral-500 uppercase tracking-wider">排期类型</th>
                                <th scope="col" class="px-4 py-3 text-left text-xs font-medium text-neutral-500 uppercase tracking-wider">优先级</th>
                                <th scope="col" class="px-4 py-3 text-left text-xs font-medium text-neutral-500 uppercase tracking-wider">所属系统</th>
                                <th scope="col" class="px-4 py-3 text-left text-xs font-medium text-neutral-500 uppercase tracking-wider">开始日期</th>
                                <th scope="col" class="px-4 py-3 text-left text-xs font-medium text-neutral-500 uppercase tracking-wider">结束日期</th>
                                <th scope="col" class="px-4 py-3 text-left text-xs font-medium text-neutral-500 uppercase tracking-wider">状态</th>
                                <th scope="col" class="px-4 py-3 text-left text-xs font-medium text-neutral-500 uppercase tracking-wider">负责人</th>
                                <th scope="col" class="px-4 py-3 text-left text-xs font-medium text-neutral-500 uppercase tracking-wider">操作</th>
                            </tr>
                        </thead>
                        <tbody class="bg-white divide-y divide-neutral-200">
                            <!-- 排期项1 -->
                            <tr class="hover:bg-neutral-50 transition-all-300">
                                <td class="px-4 py-3 whitespace-nowrap text-sm font-medium text-neutral-700">SCH-20230601</td>
                                <td class="px-4 py-3 whitespace-nowrap text-sm text-neutral-600">存款系统功能优化排期</td>
                                <td class="px-4 py-3 whitespace-nowrap">
                                    <span class="px-2 py-1 inline-flex text-xs leading-5 font-semibold rounded-full bg-primary/10 text-primary">单系统排期</span>
                                </td>
                                <td class="px-4 py-3 whitespace-nowrap">
                                    <span class="px-2 py-1 inline-flex text-xs leading-5 font-semibold rounded-full bg-danger/10 text-danger">高</span>
                                </td>
                                <td class="px-4 py-3 whitespace-nowrap text-sm text-neutral-600">核心银行系统</td>
                                <td class="px-4 py-3 whitespace-nowrap text-sm text-neutral-600">2023-06-10</td>
                                <td class="px-4 py-3 whitespace-nowrap text-sm text-neutral-600">2023-07-15</td>
                                <td class="px-4 py-3 whitespace-nowrap">
                                    <span class="px-2 py-1 inline-flex text-xs leading-5 font-semibold rounded-full bg-warning/10 text-warning">进行中</span>
                                </td>
                                <td class="px-4 py-3 whitespace-nowrap text-sm text-neutral-600">李四</td>
                                <td class="px-4 py-3 whitespace-nowrap text-sm text-primary">
                                    <button class="view-btn px-2 py-1 bg-white border border-primary text-primary rounded text-xs hover:bg-primary/5 transition-all-300 mr-1">查看</button>
                                    <button class="edit-btn px-2 py-1 bg-white border border-secondary text-secondary rounded text-xs hover:bg-secondary/5 transition-all-300 mr-1">编辑</button>
                                    <button class="delete-btn px-2 py-1 bg-white border border-danger text-danger rounded text-xs hover:bg-danger/5 transition-all-300">删除</button>
                                </td>
                            </tr>
                            <!-- 排期项2 -->
                            <tr class="hover:bg-neutral-50 transition-all-300">
                                <td class="px-4 py-3 whitespace-nowrap text-sm font-medium text-neutral-700">SCH-20230602</td>
                                <td class="px-4 py-3 whitespace-nowrap text-sm text-neutral-600">客户信息安全紧急修复</td>
                                <td class="px-4 py-3 whitespace-nowrap">
                                    <span class="px-2 py-1 inline-flex text-xs leading-5 font-semibold rounded-full bg-danger/10 text-danger">紧急排期</span>
                                </td>
                                <td class="px-4 py-3 whitespace-nowrap">
                                    <span class="px-2 py-1 inline-flex text-xs leading-5 font-semibold rounded-full bg-danger/10 text-danger">高</span>
                                </td>
                                <td class="px-4 py-3 whitespace-nowrap text-sm text-neutral-600">客户关系管理系统</td>
                                <td class="px-4 py-3 whitespace-nowrap text-sm text-neutral-600">2023-06-05</td>
                                <td class="px-4 py-3 whitespace-nowrap text-sm text-neutral-600">2023-06-07</td>
                                <td class="px-4 py-3 whitespace-nowrap">
                                    <span class="px-2 py-1 inline-flex text-xs leading-5 font-semibold rounded-full bg-success/10 text-success">已完成</span>
                                </td>
                                <td class="px-4 py-3 whitespace-nowrap text-sm text-neutral-600">张三</td>
                                <td class="px-4 py-3 whitespace-nowrap text-sm text-primary">
                                    <button class="view-btn px-2 py-1 bg-white border border-primary text-primary rounded text-xs hover:bg-primary/5 transition-all-300 mr-1">查看</button>
                                    <button class="edit-btn px-2 py-1 bg-white border border-secondary text-secondary rounded text-xs hover:bg-secondary/5 transition-all-300 mr-1">编辑</button>
                                    <button class="delete-btn px-2 py-1 bg-white border border-danger text-danger rounded text-xs hover:bg-danger/5 transition-all-300">删除</button>
                                </td>
                            </tr>
                            <!-- 排期项3 -->
                            <tr class="hover:bg-neutral-50 transition-all-300">
                                <td class="px-4 py-3 whitespace-nowrap text-sm font-medium text-neutral-700">SCH-20230603</td>
                                <td class="px-4 py-3 whitespace-nowrap text-sm text-neutral-600">季度大版本投产排期</td>
                                <td class="px-4 py-3 whitespace-nowrap">
                                    <span class="px-2 py-1 inline-flex text-xs leading-5 font-semibold rounded-full bg-secondary/10 text-secondary">大投产日排期</span>
                                </td>
                                <td class="px-4 py-3 whitespace-nowrap">
                                    <span class="px-2 py-1 inline-flex text-xs leading-5 font-semibold rounded-full bg-warning/10 text-warning">中</span>
                                </td>
                                <td class="px-4 py-3 whitespace-nowrap text-sm text-neutral-600">多系统</td>
                                <td class="px-4 py-3 whitespace-nowrap text-sm text-neutral-600">2023-06-20</td>
                                <td class="px-4 py-3 whitespace-nowrap text-sm text-neutral-600">2023-06-30</td>
                                <td class="px-4 py-3 whitespace-nowrap">
                                    <span class="px-2 py-1 inline-flex text-xs leading-5 font-semibold rounded-full bg-neutral-200 text-neutral-600">待开始</span>
                                </td>
                                <td class="px-4 py-3 whitespace-nowrap text-sm text-neutral-600">王五</td>
                                <td class="px-4 py-3 whitespace-nowrap text-sm text-primary">
                                    <button class="view-btn px-2 py-1 bg-white border border-primary text-primary rounded text-xs hover:bg-primary/5 transition-all-300 mr-1">查看</button>
                                    <button class="edit-btn px-2 py-1 bg-white border border-secondary text-secondary rounded text-xs hover:bg-secondary/5 transition-all-300 mr-1">编辑</button>
                                    <button class="delete-btn px-2 py-1 bg-white border border-danger text-danger rounded text-xs hover:bg-danger/5 transition-all-300">删除</button>
                                </td>
                            </tr>
                            <!-- 排期项4 -->
                            <tr class="hover:bg-neutral-50 transition-all-300">
                                <td class="px-4 py-3 whitespace-nowrap text-sm font-medium text-neutral-700">SCH-20230604</td>
                                <td class="px-4 py-3 whitespace-nowrap text-sm text-neutral-600">测试环境数据刷新</td>
                                <td class="px-4 py-3 whitespace-nowrap">
                                    <span class="px-2 py-1 inline-flex text-xs leading-5 font-semibold rounded-full bg-success/10 text-success">刷数排期</span>
                                </td>
                                <td class="px-4 py-3 whitespace-nowrap">
                                    <span class="px-2 py-1 inline-flex text-xs leading-5 font-semibold rounded-full bg-success/10 text-success">低</span>
                                </td>
                                <td class="px-4 py-3 whitespace-nowrap text-sm text-neutral-600">测试环境</td>
                                <td class="px-4 py-3 whitespace-nowrap text-sm text-neutral-600">2023-06-15</td>
                                <td class="px-4 py-3 whitespace-nowrap text-sm text-neutral-600">2023-06-16</td>
                                <td class="px-4 py-3 whitespace-nowrap">
                                    <span class="px-2 py-1 inline-flex text-xs leading-5 font-semibold rounded-full bg-danger/10 text-danger">已延期</span>
                                </td>
                                <td class="px-4 py-3 whitespace-nowrap text-sm text-neutral-600">赵六</td>
                                <td class="px-4 py-3 whitespace-nowrap text-sm text-primary">
                                    <button class="view-btn px-2 py-1 bg-white border border-primary text-primary rounded text-xs hover:bg-primary/5 transition-all-300 mr-1">查看</button>
                                    <button class="edit-btn px-2 py-1 bg-white border border-secondary text-secondary rounded text-xs hover:bg-secondary/5 transition-all-300 mr-1">编辑</button>
                                    <button class="delete-btn px-2 py-1 bg-white border border-danger text-danger rounded text-xs hover:bg-danger/5 transition-all-300">删除</button>
                                </td>
                            </tr>
                            <!-- 排期项5 -->
                            <tr class="hover:bg-neutral-50 transition-all-300">
                                <td class="px-4 py-3 whitespace-nowrap text-sm font-medium text-neutral-700">SCH-20230605</td>
                                <td class="px-4 py-3 whitespace-nowrap text-sm text-neutral-600">监管报表数据提取</td>
                                <td class="px-4 py-3 whitespace-nowrap">
                                    <span class="px-2 py-1 inline-flex text-xs leading-5 font-semibold rounded-full bg-neutral-200 text-neutral-600">取数排期</span>
                                </td>
                                <td class="px-4 py-3 whitespace-nowrap">
                                    <span class="px-2 py-1 inline-flex text-xs leading-5 font-semibold rounded-full bg-warning/10 text-warning">中</span>
                                </td>
                                <td class="px-4 py-3 whitespace-nowrap text-sm text-neutral-600">数据仓库系统</td>
                                <td class="px-4 py-3 whitespace-nowrap text-sm text-neutral-600">2023-06-25</td>
                                <td class="px-4 py-3 whitespace-nowrap text-sm text-neutral-600">2023-06-26</td>
                                <td class="px-4 py-3 whitespace-nowrap">
                                    <span class="px-2 py-1 inline-flex text-xs leading-5 font-semibold rounded-full bg-neutral-200 text-neutral-600">待开始</span>
                                </td>
                                <td class="px-4 py-3 whitespace-nowrap text-sm text-neutral-600">钱七</td>
                                <td class="px-4 py-3 whitespace-nowrap text-sm text-primary">
                                    <button class="view-btn px-2 py-1 bg-white border border-primary text-primary rounded text-xs hover:bg-primary/5 transition-all-300 mr-1">查看</button>
                                    <button class="edit-btn px-2 py-1 bg-white border border-secondary text-secondary rounded text-xs hover:bg-secondary/5 transition-all-300 mr-1">编辑</button>
                                    <button class="delete-btn px-2 py-1 bg-white border border-danger text-danger rounded text-xs hover:bg-danger/5 transition-all-300">删除</button>
                                </td>
                            </tr>
                        </tbody>
                    </table>
                </div>
                
                <!-- 分页 -->
                <div class="flex justify-between items-center mt-4">
                    <div class="text-sm text-neutral-500">
                        显示 1 至 5 条，共 24 条
                    </div>
                    <div class="flex space-x-1">
                        <button class="px-3 py-1 text-sm border border-neutral-200 rounded-md text-neutral-500 bg-white hover:bg-neutral-50 transition-all-300">上一页</button>
                        <button class="px-3 py-1 text-sm border border-primary rounded-md text-white bg-primary hover:bg-primary/90 transition-all-300">1</button>
                        <button class="px-3 py-1 text-sm border border-neutral-200 rounded-md text-neutral-700 bg-white hover:bg-neutral-50 transition-all-300">2</button>
                        <button class="px-3 py-1 text-sm border border-neutral-200 rounded-md text-neutral-700 bg-white hover:bg-neutral-50 transition-all-300">3</button>
                        <button class="px-3 py-1 text-sm border border-neutral-200 rounded-md text-neutral-500 bg-white hover:bg-neutral-50 transition-all-300">下一页</button>
                    </div>
                </div>
            </div>
        </main>
    </div>

    <!-- 查看排期详情模态框 -->
    <div id="view-schedule-modal" class="fixed inset-0 bg-neutral-700/50 z-50 hidden flex items-center justify-center">
        <div class="bg-white rounded-lg shadow-lg w-full max-w-4xl mx-4 max-h-[90vh] overflow-y-auto">
            <div class="flex justify-between items-center px-6 py-4 border-b border-neutral-200">
                <h3 class="text-lg font-bold text-neutral-700">排期详情</h3>
                <button id="close-view-modal-btn" class="text-neutral-400 hover:text-neutral-600">
                    <i class="fa fa-times"></i>
                </button>
            </div>
            <div class="p-6">
                <!-- 排期基本信息 -->
                <div class="mb-6">
                    <h4 class="text-md font-semibold text-neutral-700 mb-3">排期计划</h4>
                    <div class="grid grid-cols-1 md:grid-cols-2 gap-4">
                        <div>
                            <label class="block text-sm text-neutral-500 mb-1">排期ID</label>
                            <p id="view-schedule-id" class="text-neutral-700 font-medium"></p>
                        </div>
                        <div>
                            <label class="block text-sm text-neutral-500 mb-1">排期名称</label>
                            <p id="view-schedule-name" class="text-neutral-700 font-medium"></p>
                        </div>
                        <div>
                            <label class="block text-sm text-neutral-500 mb-1">排期类型</label>
                            <p id="view-schedule-type" class="text-neutral-700"></p>
                        </div>
                        <div>
                            <label class="block text-sm text-neutral-500 mb-1">优先级</label>
                            <p id="view-schedule-priority" class="text-neutral-700"></p>
                        </div>
                        <div>
                            <label class="block text-sm text-neutral-500 mb-1">开始日期</label>
                            <p id="view-start-date" class="text-neutral-700"></p>
                        </div>
                        <div>
                            <label class="block text-sm text-neutral-500 mb-1">结束日期</label>
                            <p id="view-end-date" class="text-neutral-700"></p>
                        </div>
                        <div>
                            <label class="block text-sm text-neutral-500 mb-1">状态</label>
                            <p id="view-schedule-status" class="text-neutral-700"></p>
                        </div>
                        <div>
                            <label class="block text-sm text-neutral-500 mb-1">负责人</label>
                            <p id="view-schedule-manager" class="text-neutral-700"></p>
                        </div>
                    </div>
                    <div class="mt-4">
                        <label class="block text-sm text-neutral-500 mb-1">排期描述</label>
                        <p id="view-schedule-description" class="text-neutral-700"></p>
                    </div>
                </div>

                <!-- 相关特性 -->
                <div class="mb-6">
                    <h4 class="text-md font-semibold text-neutral-700 mb-3">相关特性</h4>
                    <div id="view-features-list" class="space-y-2">
                        <!-- 特性列表将通过JavaScript动态填充 -->
                    </div>
                </div>

                <!-- 特性关联系统 -->
                <div class="mb-6">
                    <h4 class="text-md font-semibold text-neutral-700 mb-3">特性关联系统</h4>
                    <div id="view-systems-list" class="space-y-2">
                        <!-- 系统列表将通过JavaScript动态填充 -->
                    </div>
                </div>

                <!-- 排期进展 -->
                <div class="mb-6">
                    <h4 class="text-md font-semibold text-neutral-700 mb-3">排期进展</h4>
                    <div class="flex items-center mb-2">
                        <span id="view-progress-text" class="text-sm text-neutral-600 w-20"></span>
                        <div class="flex-1 bg-neutral-200 rounded-full h-2.5">
                            <div id="view-progress-bar" class="bg-primary h-2.5 rounded-full"></div>
                        </div>
                    </div>
                    <div class="mt-3 text-sm text-neutral-600">
                        <p id="view-progress-details"></p>
                    </div>
                </div>

                <!-- 产出物清单 -->
                <div class="mb-6">
                    <h4 class="text-md font-semibold text-neutral-700 mb-3">已产出的产出物清单</h4>
                    <div class="overflow-x-auto">
                        <table class="min-w-full divide-y divide-neutral-200">
                            <thead class="bg-neutral-50">
                                <tr>
                                    <th scope="col" class="px-4 py-2 text-left text-xs font-medium text-neutral-500 uppercase tracking-wider">产出物名称</th>
                                    <th scope="col" class="px-4 py-2 text-left text-xs font-medium text-neutral-500 uppercase tracking-wider">类型</th>
                                    <th scope="col" class="px-4 py-2 text-left text-xs font-medium text-neutral-500 uppercase tracking-wider">数量</th>
                                    <th scope="col" class="px-4 py-2 text-left text-xs font-medium text-neutral-500 uppercase tracking-wider">负责人</th>
                                    <th scope="col" class="px-4 py-2 text-left text-xs font-medium text-neutral-500 uppercase tracking-wider">完成时间</th>
                                    <th scope="col" class="px-4 py-2 text-left text-xs font-medium text-neutral-500 uppercase tracking-wider">状态</th>
                                </tr>
                            </thead>
                            <tbody id="view-deliverables-list" class="bg-white divide-y divide-neutral-200">
                                <!-- 产出物列表将通过JavaScript动态填充 -->
                            </tbody>
                        </table>
                    </div>
                </div>

                <!-- 业务架构清单 -->
                <div class="mb-6">
                    <h4 class="text-md font-semibold text-neutral-700 mb-3">业务架构清单</h4>
                    <div class="overflow-x-auto">
                        <table class="min-w-full divide-y divide-neutral-200">
                            <thead class="bg-neutral-50">
                                <tr>
                                    <th scope="col" class="px-4 py-2 text-left text-xs font-medium text-neutral-500 uppercase tracking-wider">业务流程</th>
                                    <th scope="col" class="px-4 py-2 text-left text-xs font-medium text-neutral-500 uppercase tracking-wider">业务规则</th>
                                    <th scope="col" class="px-4 py-2 text-left text-xs font-medium text-neutral-500 uppercase tracking-wider">负责人</th>
                                    <th scope="col" class="px-4 py-2 text-left text-xs font-medium text-neutral-500 uppercase tracking-wider">状态</th>
                                </tr>
                            </thead>
                            <tbody id="view-business-architecture-list" class="bg-white divide-y divide-neutral-200">
                                <!-- 业务架构列表将通过JavaScript动态填充 -->
                            </tbody>
                        </table>
                    </div>
                </div>

                <!-- 应用架构清单 -->
                <div class="mb-6">
                    <h4 class="text-md font-semibold text-neutral-700 mb-3">应用架构清单</h4>
                    <div class="overflow-x-auto">
                        <table class="min-w-full divide-y divide-neutral-200">
                            <thead class="bg-neutral-50">
                                <tr>
                                    <th scope="col" class="px-4 py-2 text-left text-xs font-medium text-neutral-500 uppercase tracking-wider">应用名称</th>
                                    <th scope="col" class="px-4 py-2 text-left text-xs font-medium text-neutral-500 uppercase tracking-wider">模块</th>
                                    <th scope="col" class="px-4 py-2 text-left text-xs font-medium text-neutral-500 uppercase tracking-wider">技术栈</th>
                                    <th scope="col" class="px-4 py-2 text-left text-xs font-medium text-neutral-500 uppercase tracking-wider">负责人</th>
                                    <th scope="col" class="px-4 py-2 text-left text-xs font-medium text-neutral-500 uppercase tracking-wider">状态</th>
                                </tr>
                            </thead>
                            <tbody id="view-application-architecture-list" class="bg-white divide-y divide-neutral-200">
                                <!-- 应用架构列表将通过JavaScript动态填充 -->
                            </tbody>
                        </table>
                    </div>
                </div>

                <div class="flex justify-end mt-6">
                    <button id="close-view-btn" class="px-4 py-2 border border-neutral-200 rounded-md text-neutral-600 hover:bg-neutral-50 transition-all-300">关闭</button>
                </div>
            </div>
        </div>
    </div>

    <!-- 创建排期模态框 -->
    <div id="create-schedule-modal" class="fixed inset-0 bg-neutral-700/50 z-50 hidden flex items-center justify-center">
        <div class="bg-white rounded-lg shadow-lg w-full max-w-2xl mx-4 overflow-hidden">
            <div class="flex justify-between items-center px-6 py-4 border-b border-neutral-200">
                <h3 class="text-lg font-bold text-neutral-700">创建排期</h3>
                <button id="close-modal-btn" class="text-neutral-400 hover:text-neutral-600">
                    <i class="fa fa-times"></i>
                </button>
            </div>
            <div class="p-6">
                <form id="create-schedule-form">
                    <div class="grid grid-cols-1 md:grid-cols-2 gap-4 mb-4">
                        <div>
                            <label class="block text-sm font-medium text-neutral-700 mb-1">需求ID</label>
                            <input type="text" id="req-id" class="w-full px-3 py-2 border border-neutral-200 rounded-md focus:outline-none focus:ring-2 focus:ring-primary/30 focus:border-primary" readonly>
                        </div>
                        <div>
                            <label class="block text-sm font-medium text-neutral-700 mb-1">需求名称</label>
                            <input type="text" id="req-name" class="w-full px-3 py-2 border border-neutral-200 rounded-md focus:outline-none focus:ring-2 focus:ring-primary/30 focus:border-primary" readonly>
                        </div>
                        <div>
                            <label class="block text-sm font-medium text-neutral-700 mb-1">排期名称 <span class="text-danger">*</span></label>
                            <input type="text" id="schedule-name" class="w-full px-3 py-2 border border-neutral-200 rounded-md focus:outline-none focus:ring-2 focus:ring-primary/30 focus:border-primary" required>
                        </div>
                        <div>
                            <label class="block text-sm font-medium text-neutral-700 mb-1">排期类型 <span class="text-danger">*</span></label>
                            <select id="schedule-type" class="w-full px-3 py-2 border border-neutral-200 rounded-md focus:outline-none focus:ring-2 focus:ring-primary/30 focus:border-primary" required>
                                <option value="">请选择</option>
                                <option value="single-system">单系统排期</option>
                                <option value="urgent">紧急排期</option>
                                <option value="big-production">大投产日排期</option>
                                <option value="data-refresh">刷数排期</option>
                                <option value="data-extraction">取数排期</option>
                            </select>
                        </div>
                        <div>
                            <label class="block text-sm font-medium text-neutral-700 mb-1">开始日期 <span class="text-danger">*</span></label>
                            <input type="date" id="start-date" class="w-full px-3 py-2 border border-neutral-200 rounded-md focus:outline-none focus:ring-2 focus:ring-primary/30 focus:border-primary" required>
                        </div>
                        <div>
                            <label class="block text-sm font-medium text-neutral-700 mb-1">结束日期 <span class="text-danger">*</span></label>
                            <input type="date" id="end-date" class="w-full px-3 py-2 border border-neutral-200 rounded-md focus:outline-none focus:ring-2 focus:ring-primary/30 focus:border-primary" required>
                        </div>
                        <div>
                            <label class="block text-sm font-medium text-neutral-700 mb-1">优先级 <span class="text-danger">*</span></label>
                            <select id="priority" class="w-full px-3 py-2 border border-neutral-200 rounded-md focus:outline-none focus:ring-2 focus:ring-primary/30 focus:border-primary" required>
                                <option value="">请选择</option>
                                <option value="high">高</option>
                                <option value="medium">中</option>
                                <option value="low">低</option>
                            </select>
                        </div>
                        <div>
                            <label class="block text-sm font-medium text-neutral-700 mb-1">负责人 <span class="text-danger">*</span></label>
                            <input type="text" id="manager" class="w-full px-3 py-2 border border-neutral-200 rounded-md focus:outline-none focus:ring-2 focus:ring-primary/30 focus:border-primary" required>
                        </div>
                    </div>
                    <div class="mb-4">
                        <label class="block text-sm font-medium text-neutral-700 mb-1">排期描述</label>
                        <textarea id="description" rows="3" class="w-full px-3 py-2 border border-neutral-200 rounded-md focus:outline-none focus:ring-2 focus:ring-primary/30 focus:border-primary"></textarea>
                    </div>
                    <div class="flex justify-end space-x-3 mt-6">
                        <button type="button" id="cancel-create-btn" class="px-4 py-2 border border-neutral-200 rounded-md text-neutral-600 hover:bg-neutral-50 transition-all-300">取消</button>
                        <button type="submit" class="px-4 py-2 bg-primary text-white rounded-md hover:bg-primary/90 transition-all-300">确定</button>
                    </div>
                </form>
            </div>
        </div>
    </div>

    <!-- JavaScript -->
    <script>
        // 初始化页面
        document.addEventListener('DOMContentLoaded', function() {
            // 获取模态框元素
            const createScheduleModal = document.getElementById('create-schedule-modal');
            const closeModalBtn = document.getElementById('close-modal-btn');
            const cancelCreateBtn = document.getElementById('cancel-create-btn');
            const createScheduleForm = document.getElementById('create-schedule-form');
            const createScheduleBtns = document.querySelectorAll('.create-schedule-btn');
            
            // 打开创建排期模态框
            createScheduleBtns.forEach(btn => {
                btn.addEventListener('click', function() {
                    // 获取需求信息
                    const row = this.closest('tr');
                    const reqId = row.querySelector('td:nth-child(1)').textContent;
                    const reqName = row.querySelector('td:nth-child(2)').textContent;
                    
                    // 填充模态框表单
                    document.getElementById('req-id').value = reqId;
                    document.getElementById('req-name').value = reqName;
                    
                    // 显示模态框
                    createScheduleModal.classList.remove('hidden');
                });
            });
            
            // 关闭模态框
            function closeModal() {
                createScheduleModal.classList.add('hidden');
                createScheduleForm.reset();
            }
            
            closeModalBtn.addEventListener('click', closeModal);
            cancelCreateBtn.addEventListener('click', closeModal);
            
            // 点击模态框外部关闭
            createScheduleModal.addEventListener('click', function(event) {
                if (event.target === createScheduleModal) {
                    closeModal();
                }
            });
            
            // 提交创建排期表单
            createScheduleForm.addEventListener('submit', function(event) {
                event.preventDefault();
                
                // 获取表单数据
                const formData = {
                    reqId: document.getElementById('req-id').value,
                    reqName: document.getElementById('req-name').value,
                    scheduleName: document.getElementById('schedule-name').value,
                    scheduleType: document.getElementById('schedule-type').value,
                    startDate: document.getElementById('start-date').value,
                    endDate: document.getElementById('end-date').value,
                    priority: document.getElementById('priority').value,
                    manager: document.getElementById('manager').value,
                    description: document.getElementById('description').value
                };
                
                // 这里可以添加表单验证逻辑
                
                // 模拟提交成功
                console.log('创建排期数据:', formData);
                alert('排期创建成功！');
                closeModal();
                
                // 实际项目中这里应该发送AJAX请求到后端
            });
            
            // 排期筛选功能
            const scheduleTypeFilter = document.getElementById('schedule-type-filter');
            const statusFilter = document.getElementById('status-filter');
            const systemFilter = document.getElementById('system-filter');
            const scheduleSearch = document.getElementById('schedule-search');
            
            // 添加筛选事件监听
            function applyFilters() {
                const typeValue = scheduleTypeFilter.value;
                const statusValue = statusFilter.value;
                const systemValue = systemFilter.value;
                const searchValue = scheduleSearch.value.toLowerCase();
                
                // 获取所有排期行
                const scheduleRows = document.querySelectorAll('tbody tr');
                
                // 遍历筛选
                scheduleRows.forEach(row => {
                    const scheduleType = row.querySelector('td:nth-child(3) span').textContent;
                    const status = row.querySelector('td:nth-child(8) span').textContent;
                    const system = row.querySelector('td:nth-child(5)').textContent;
                    const scheduleId = row.querySelector('td:nth-child(1)').textContent.toLowerCase();
                    const scheduleName = row.querySelector('td:nth-child(2)').textContent.toLowerCase();
                    
                    // 应用筛选条件
                    const typeMatch = typeValue === 'all' || scheduleType.includes(getTypeText(typeValue));
                    const statusMatch = statusValue === 'all' || status.includes(getStatusText(statusValue));
                    const systemMatch = systemValue === 'all' || system.includes(getSystemText(systemValue));
                    const searchMatch = scheduleId.includes(searchValue) || scheduleName.includes(searchValue);
                    
                    // 显示或隐藏行
                    if (typeMatch && statusMatch && systemMatch && searchMatch) {
                        row.style.display = '';
                    } else {
                        row.style.display = 'none';
                    }
                });
            }
            
            // 辅助函数：根据筛选值获取对应文本
            function getTypeText(value) {
                const typeMap = {
                    'single-system': '单系统排期',
                    'urgent': '紧急排期',
                    'big-production': '大投产日排期',
                    'data-refresh': '刷数排期',
                    'data-extraction': '取数排期'
                };
                return typeMap[value] || '';
            }
            
            function getStatusText(value) {
                const statusMap = {
                    'pending': '待开始',
                    'in-progress': '进行中',
                    'completed': '已完成',
                    'delayed': '已延期'
                };
                return statusMap[value] || '';
            }
            
            function getSystemText(value) {
                const systemMap = {
                    'core-banking': '核心银行系统',
                    'credit-management': '信贷管理系统',
                    'crm': '客户关系管理系统',
                    'risk-management': '风险管理系统'
                };
                return systemMap[value] || '';
            }
            
            // 添加筛选事件监听
            scheduleTypeFilter.addEventListener('change', applyFilters);
            statusFilter.addEventListener('change', applyFilters);
            systemFilter.addEventListener('change', applyFilters);
            scheduleSearch.addEventListener('input', applyFilters);
            
            // 刷新按钮功能
            document.getElementById('refresh-btn').addEventListener('click', function() {
                // 重置筛选条件
                scheduleTypeFilter.value = 'all';
                statusFilter.value = 'all';
                systemFilter.value = 'all';
                scheduleSearch.value = '';
                
                // 重新应用筛选
                applyFilters();
                
                // 显示刷新提示
                this.innerHTML = '<i class="fa fa-refresh fa-spin mr-1"></i> 刷新中...';
                setTimeout(() => {
                    this.innerHTML = '<i class="fa fa-refresh mr-1"></i> 刷新';
                    alert('页面已刷新！');
                }, 500);
            });
            
            // 导出按钮功能
            document.getElementById('export-btn').addEventListener('click', function() {
                alert('排期数据导出成功！');
            });
            
            // 获取查看排期模态框元素
            const viewScheduleModal = document.getElementById('view-schedule-modal');
            const closeViewModalBtn = document.getElementById('close-view-modal-btn');
            const closeViewBtn = document.getElementById('close-view-btn');
            
            // 关闭查看排期模态框
            function closeViewModal() {
                viewScheduleModal.classList.add('hidden');
            }
            
            closeViewModalBtn.addEventListener('click', closeViewModal);
            closeViewBtn.addEventListener('click', closeViewModal);
            
            // 点击模态框外部关闭
            viewScheduleModal.addEventListener('click', function(event) {
                if (event.target === viewScheduleModal) {
                    closeViewModal();
                }
            });
            
            // 排期操作按钮功能
            const viewBtns = document.querySelectorAll('.view-btn');
            const editBtns = document.querySelectorAll('.edit-btn');
            const deleteBtns = document.querySelectorAll('.delete-btn');
            
            // 查看排期详情
            viewBtns.forEach(btn => {
                btn.addEventListener('click', function() {
                    const row = this.closest('tr');
                    const scheduleId = row.querySelector('td:nth-child(1)').textContent;
                    const scheduleName = row.querySelector('td:nth-child(2)').textContent;
                    const scheduleType = row.querySelector('td:nth-child(3) span').textContent;
                    const priority = row.querySelector('td:nth-child(4) span').textContent;
                    const system = row.querySelector('td:nth-child(5)').textContent;
                    const startDate = row.querySelector('td:nth-child(6)').textContent;
                    const endDate = row.querySelector('td:nth-child(7)').textContent;
                    const status = row.querySelector('td:nth-child(8) span').textContent;
                    const manager = row.querySelector('td:nth-child(9)').textContent;
                    
                    // 填充模态框内容
                    document.getElementById('view-schedule-id').textContent = scheduleId;
                    document.getElementById('view-schedule-name').textContent = scheduleName;
                    document.getElementById('view-schedule-type').textContent = scheduleType;
                    document.getElementById('view-schedule-priority').textContent = priority;
                    document.getElementById('view-start-date').textContent = startDate;
                    document.getElementById('view-end-date').textContent = endDate;
                    document.getElementById('view-schedule-status').textContent = status;
                    document.getElementById('view-schedule-manager').textContent = manager;
                    
                    // 根据排期ID设置描述（模拟数据）
                    let description = '';
                    let progress = 0;
                    let progressDetails = '';
                    
                    if (scheduleId === 'SCH-20230601') {
                        description = '存款系统功能优化项目排期，包含用户界面改进、性能优化和安全加固等内容。';
                        progress = 65;
                        progressDetails = '需求分析已完成，设计文档已评审通过，开发阶段正在进行中。';
                    } else if (scheduleId === 'SCH-20230602') {
                        description = '客户信息安全紧急修复，解决数据泄露风险问题。';
                        progress = 100;
                        progressDetails = '已完成紧急修复并通过安全测试，系统已恢复正常运行。';
                    } else if (scheduleId === 'SCH-20230603') {
                        description = '季度大版本投产，涉及多个系统的功能更新和性能优化。';
                        progress = 20;
                        progressDetails = '需求收集和规划阶段已完成，正在进行设计和资源分配。';
                    } else if (scheduleId === 'SCH-20230604') {
                        description = '测试环境数据刷新，确保测试数据的准确性和完整性。';
                        progress = 45;
                        progressDetails = '数据备份已完成，正在进行数据迁移，遇到一些技术问题导致延期。';
                    } else if (scheduleId === 'SCH-20230605') {
                        description = '监管报表数据提取，满足监管部门的数据报送要求。';
                        progress = 0;
                        progressDetails = '等待监管要求确认，尚未开始。';
                    }
                    
                    document.getElementById('view-schedule-description').textContent = description;
                    document.getElementById('view-progress-text').textContent = `${progress}%`;
                    document.getElementById('view-progress-bar').style.width = `${progress}%`;
                    document.getElementById('view-progress-details').textContent = progressDetails;
                    
                    // 填充相关特性（模拟数据），每个特性包含关联系统
                    const featuresList = document.getElementById('view-features-list');
                    featuresList.innerHTML = '';
                    
                    if (scheduleId === 'SCH-20230601') {
                        const features = [
                            { 
                                id: 'FTR-001', 
                                name: '用户界面改进', 
                                status: '进行中',
                                systems: [
                                    { name: '客户关系管理系统', version: 'v2.8.0', status: '运行中' }
                                ]
                            },
                            { 
                                id: 'FTR-002', 
                                name: '性能优化', 
                                status: '已完成',
                                systems: [
                                    { name: '核心银行系统', version: 'v3.5.2', status: '运行中' },
                                    { name: '客户关系管理系统', version: 'v2.8.0', status: '运行中' }
                                ]
                            },
                            { 
                                id: 'FTR-003', 
                                name: '安全加固', 
                                status: '待开始',
                                systems: [
                                    { name: '核心银行系统', version: 'v3.5.2', status: '运行中' }
                                ]
                            }
                        ];
                        
                        features.forEach(feature => {
                            const featureItem = document.createElement('div');
                            featureItem.className = 'mb-3';
                            featureItem.innerHTML = `
                                <div class="flex justify-between items-center p-2 bg-neutral-50 rounded-t-md">
                                    <div>
                                        <span class="text-sm font-medium text-neutral-700">${feature.id}</span>
                                        <span class="text-sm text-neutral-600 ml-2">${feature.name}</span>
                                    </div>
                                    <span class="px-2 py-0.5 text-xs font-medium rounded-full ${feature.status === '进行中' ? 'bg-warning/10 text-warning' : feature.status === '已完成' ? 'bg-success/10 text-success' : 'bg-neutral-200 text-neutral-600'}">${feature.status}</span>
                                </div>
                                <div class="pl-4 pr-2 pb-2">
                                    <div class="text-xs text-neutral-500 mb-1">关联系统：</div>
                                    <div class="space-y-1">
                                        ${feature.systems.map(sys => `
                                        <div class="flex justify-between items-center p-1.5 bg-neutral-50 rounded-md text-sm">
                                            <div>
                                                <span class="text-neutral-700">${sys.name}</span>
                                                <span class="text-xs text-neutral-500 ml-2">版本：${sys.version}</span>
                                            </div>
                                            <span class="px-2 py-0.5 text-xs font-medium rounded-full bg-success/10 text-success">${sys.status}</span>
                                        </div>
                                        `).join('')}
                                    </div>
                                </div>
                            `;
                            featuresList.appendChild(featureItem);
                        });
                    } else {
                        featuresList.innerHTML = '<p class="text-sm text-neutral-500">暂无相关特性数据</p>';
                    }
                    
                    // 特性关联系统模块现在从属于特性模块，此处保留为兼容性
                    const systemsList = document.getElementById('view-systems-list');
                    systemsList.innerHTML = '<p class="text-sm text-neutral-500">关联系统信息已整合到各特性中</p>';
                    
                    // 填充产出物清单（模拟数据），只保留用户界面原型，其他改为业务模型并添加数量列
                    const deliverablesList = document.getElementById('view-deliverables-list');
                    deliverablesList.innerHTML = '';
                    
                    if (scheduleId === 'SCH-20230601') {
                        const deliverables = [
                            { name: '业务模型', type: 'model', quantity: 20, manager: '李四', date: '2023-06-12', status: '已完成' },
                            { name: '业务模型', type: 'model', quantity: 15, manager: '王五', date: '2023-06-18', status: '已完成' },
                            { name: '用户界面原型', type: '设计', quantity: 5, manager: '赵六', date: '2023-06-20', status: '进行中' },
                            { name: '业务模型', type: 'model', quantity: 10, manager: '张三', date: '2023-06-25', status: '进行中' }
                        ];
                        
                        deliverables.forEach(deliverable => {
                            const row = document.createElement('tr');
                            row.className = 'hover:bg-neutral-50 transition-all-300';
                            row.innerHTML = `
                                <td class="px-4 py-2 whitespace-nowrap text-sm text-neutral-700">${deliverable.name}</td>
                                <td class="px-4 py-2 whitespace-nowrap text-sm text-neutral-600">${deliverable.type}</td>
                                <td class="px-4 py-2 whitespace-nowrap text-sm text-neutral-600">${deliverable.quantity}</td>
                                <td class="px-4 py-2 whitespace-nowrap text-sm text-neutral-600">${deliverable.manager}</td>
                                <td class="px-4 py-2 whitespace-nowrap text-sm text-neutral-600">${deliverable.date}</td>
                                <td class="px-4 py-2 whitespace-nowrap">
                                    <span class="px-2 py-0.5 inline-flex text-xs leading-5 font-semibold rounded-full ${deliverable.status === '已完成' ? 'bg-success/10 text-success' : 'bg-warning/10 text-warning'}">${deliverable.status}</span>
                                </td>
                            `;
                            deliverablesList.appendChild(row);
                        });
                    } else {
                        const row = document.createElement('tr');
                        row.innerHTML = `
                            <td colspan="6" class="px-4 py-3 text-center text-sm text-neutral-500">暂无产出物数据</td>
                        `;
                        deliverablesList.appendChild(row);
                    }
                    
                    // 填充业务架构清单（模拟数据）
                    const businessArchitectureList = document.getElementById('view-business-architecture-list');
                    businessArchitectureList.innerHTML = '';
                    
                    if (scheduleId === 'SCH-20230601') {
                        const businessArchitectures = [
                            { process: '个人存款开户流程', rule: '存款金额限制规则', manager: '钱七', status: '已完成' },
                            { process: '存款利息计算流程', rule: '利率计算规则', manager: '孙八', status: '进行中' }
                        ];
                        
                        businessArchitectures.forEach(arch => {
                            const row = document.createElement('tr');
                            row.className = 'hover:bg-neutral-50 transition-all-300';
                            row.innerHTML = `
                                <td class="px-4 py-2 whitespace-nowrap text-sm text-neutral-700">${arch.process}</td>
                                <td class="px-4 py-2 whitespace-nowrap text-sm text-neutral-600">${arch.rule}</td>
                                <td class="px-4 py-2 whitespace-nowrap text-sm text-neutral-600">${arch.manager}</td>
                                <td class="px-4 py-2 whitespace-nowrap">
                                    <span class="px-2 py-0.5 inline-flex text-xs leading-5 font-semibold rounded-full ${arch.status === '已完成' ? 'bg-success/10 text-success' : 'bg-warning/10 text-warning'}">${arch.status}</span>
                                </td>
                            `;
                            businessArchitectureList.appendChild(row);
                        });
                    } else {
                        const row = document.createElement('tr');
                        row.innerHTML = `
                            <td colspan="4" class="px-4 py-3 text-center text-sm text-neutral-500">暂无业务架构数据</td>
                        `;
                        businessArchitectureList.appendChild(row);
                    }
                    
                    // 填充应用架构清单（模拟数据）
                    const applicationArchitectureList = document.getElementById('view-application-architecture-list');
                    applicationArchitectureList.innerHTML = '';
                    
                    if (scheduleId === 'SCH-20230601') {
                        const applicationArchitectures = [
                            { app: '核心银行系统', module: '存款模块', tech: 'Java, Spring Boot', manager: '周九', status: '进行中' },
                            { app: '客户关系管理系统', module: '客户信息模块', tech: '.NET Core', manager: '吴十', status: '进行中' }
                        ];
                        
                        applicationArchitectures.forEach(arch => {
                            const row = document.createElement('tr');
                            row.className = 'hover:bg-neutral-50 transition-all-300';
                            row.innerHTML = `
                                <td class="px-4 py-2 whitespace-nowrap text-sm text-neutral-700">${arch.app}</td>
                                <td class="px-4 py-2 whitespace-nowrap text-sm text-neutral-600">${arch.module}</td>
                                <td class="px-4 py-2 whitespace-nowrap text-sm text-neutral-600">${arch.tech}</td>
                                <td class="px-4 py-2 whitespace-nowrap text-sm text-neutral-600">${arch.manager}</td>
                                <td class="px-4 py-2 whitespace-nowrap">
                                    <span class="px-2 py-0.5 inline-flex text-xs leading-5 font-semibold rounded-full bg-warning/10 text-warning">${arch.status}</span>
                                </td>
                            `;
                            applicationArchitectureList.appendChild(row);
                        });
                    } else {
                        const row = document.createElement('tr');
                        row.innerHTML = `
                            <td colspan="5" class="px-4 py-3 text-center text-sm text-neutral-500">暂无应用架构数据</td>
                        `;
                        applicationArchitectureList.appendChild(row);
                    }
                    
                    // 显示模态框
                    viewScheduleModal.classList.remove('hidden');
                });
            });
            
            editBtns.forEach(btn => {
                btn.addEventListener('click', function() {
                    const row = this.closest('tr');
                    const scheduleId = row.querySelector('td:nth-child(1)').textContent;
                    alert(`编辑排期 ${scheduleId}`);
                });
            });
            
            deleteBtns.forEach(btn => {
                btn.addEventListener('click', function() {
                    const row = this.closest('tr');
                    const scheduleId = row.querySelector('td:nth-child(1)').textContent;
                    if (confirm(`确定要删除排期 ${scheduleId} 吗？`)) {
                        alert(`排期 ${scheduleId} 已删除`);
                    }
                });
            });
        });
    </script>
</body>
</html>